<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Admin\Controller;
use Think\Controller;
/**
 * Description of BaseController
 *
 * @author Administrator
 */
class BaseController extends Controller {
    //put your code here
    function _initialize() {
        #判断登录状态
        if(!session("?".C('UA_KEY'))){
            session(C('UA_KEY'),null);
            echo "<script>top.location.href='".U('admin/login/login')."';</script>";
        }
    }
}

